package guoanmaker.provider.business.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import guoanmaker.provider.business.model.OperatorGuarantee;
import guoanmaker.provider.business.repository.OperatorGuaranteeRepository;

@Service
public class OperatorGuaranteeService {
	@Autowired
	private OperatorGuaranteeRepository operatorGuaranteeRepository;
	
	//获取平台保障须知
	public String getGuarantee(){
		List<OperatorGuarantee> lists=operatorGuaranteeRepository.findAll();
		if(lists.size()>0){
			return lists.get(0).getGuarantee();
		}else{
			return null;
		}
	}
}
